#!/usr/bin/env bash

source scripts/_var.sh
source scripts/_fn.sh

BINARY_FILE=$REPO_DIR/$PROC.$BIN.$HASH.bin

mkdir -p "$REPO_DIR"

trace_on
  go build -o "$BINARY_FILE" -tags "$TAGS" "${OPTS[@]}" "./cmd/$BIN/main.go"
  cp "$BINARY_FILE" "$REPO_DIR/$PROC.$BIN.bin"
trace_off
